def log_request(req: 'flask_request',res: str) -> None:
    """log details of the web request and the results."""
    with open('weather.log', 'a') as log:
        print(req.form,req.remote_addr,req.user_agent,res,file=log,sep='|')